//
//  ViewController.swift
//  NetworkHelper
//
//  Created by 远成物流 on 2017/6/27.
//
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        NetworkHelper.shareInstance.request(method: .GET, urlString: "http://httpbin.org/get", parameters: ["name":"Sunny"]) { (result, error ) in
            print(result ?? "",error ?? "")
        }
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

